//
//  SYKeyboard.h
//  SYKeyboard
//
//  Created by hc on 2019/3/1.
//  Copyright © 2019 hc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SYBaseKeyboard.h"

@class SYKeyboard;
@protocol SYKeyboardDelegate <NSObject>

/**
 按键回调
 
 @param key 单击的文本
 @param keyType 单击的文本类型
 @param keyboardType 键盘类型
 @param keyboard 键盘
 @param content 已输入的内容
 */
- (void)pressKey:(NSString *)key keyType:(SYKeyType)keyType keyboardType:(SYKeyboardType)keyboardType keyboard:(SYKeyboard *)keyboard content:(NSString *)content;

@end

NS_ASSUME_NONNULL_BEGIN

@interface SYKeyboard : UIView

/** 输入的内容文本 **/
@property (nonatomic, strong) NSString * content;
@property (nonatomic, assign) BOOL isChange;        //  数字键盘是否可变    默认为NO 不可变
@property (nonatomic, assign) BOOL isNumKeyboard;   //  是否是纯数字键盘    默认为NO 不是
@property (nonatomic, weak) id<SYKeyboardDelegate> delegate;

/**
 快速创建键盘
 
 @param type 键盘类型
 @param delegate 代理对象
 @return 键盘对象
 */
+(SYKeyboard *)creatWithKeyboardType:(SYKeyboardType)type delegateTarget:(id<SYKeyboardDelegate>)delegate;


@end

NS_ASSUME_NONNULL_END
